<!--
 * @Author: hq
 * @Date: 2022-05-30 17:17:49
 * @LastEditors: hq
 * @LastEditTime: 2022-05-30 17:40:49
 * @Description: 评论弹窗
 * @version: 1.0
-->
<template>
  <div>
    <el-form ref="form" :model="form" label-width="100px">
      <el-row>
        <el-col :span="10">
          <el-form-item label="商品id">
            <el-input
              v-model="form.shop_id"
              placeholder="请输入商品id"
            ></el-input>
          </el-form-item>
          <el-form-item label="评论内容">
            <el-input v-model="form.comment_content"></el-input>
          </el-form-item>
          <el-form-item label="评论图片">
            <el-upload
              action=""
              list-type="picture-card"
              :http-request="upLoad"
              :before-upload="beforeAvatarUpload"
              :on-preview="handlePictureCardPreview"
              :on-remove="handleRemove"
              :file-list="fileList"
              :limit="10"
            >
              <i class="el-icon-plus"></i>
            </el-upload>
            <el-dialog :visible.sync="dialogVisible">
              <img width="100%" :src="dialogImageUrl" alt="" />
            </el-dialog>
          </el-form-item>
          <el-form-item label="状态">
            <el-select v-model="form.shopStateId">
              <el-option
                v-for="item in shopState"
                :key="item.id"
                :label="item.name"
                :value="item.id"
              >
              </el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
      <el-form-item>
        <el-button type="primary" @click="handleSubmit">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {},
    };
  },
};
</script>

<style lang="scss" scoped></style>
